<%@ include file="/WEB-INF/jsp/include.jsp" %>
<c:set var="curIngredientsGroups" value="${ingredientsGroups}" scope="page"/>
<c:forEach var="ingredientGroup" items="${curIngredientsGroups}">
    <li class="closed">
        <span class="folder"><span class="hidden_id">${ingredientGroup.id}</span><c:out value="${ingredientGroup.name}"/></span>
        <c:if test="${not empty ingredientGroup.childs}">
            <ul>
                <c:set var="ingredientsGroups" value="${ingredientGroup.childs}" scope="request"/>
                <c:import url="ingredientsGroupsBlock.jsp"/>
            </ul>
        </c:if>
    </li>
</c:forEach>